package com.xuexizu.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xuexizu.dao.impl.BannerDaoImpl;
import com.xuexizu.util.BaseServlet;

/**
 * Servlet implementation class BannerServlet
 */
public class BannerServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
       
	BannerDaoImpl bannerDaoImpl=new BannerDaoImpl();
	public void selectBanner(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("bList", bannerDaoImpl.selectBanner());
		request.getRequestDispatcher("index.jsp").forward(request, response);
	}
   
}
